package com.youu.youu.portal.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;

@Controller
public class RestApiServerInfo {

    @Value("${restapi.server.ip}")
    private String restapiserver;
    @Value("${restapi.server.port}")
    private String restapiport;
    @Value("${restapi.server.apppath}")
    private String appPath;
    
    public String getRestApiURL(){
        return "http://" + restapiserver + ":" + restapiport + "/" + appPath;
    }
}
